/**
 * ClassName: BubbleSort
 * Package: PACKAGE_NAME
 *
 * @Author 马学兴
 * @Create 2025-02-12 14:33
 * @Version 1.0
 * Description:
 */
import java.util.Arrays;

public class BuiltInSort {
    public static void main(String[] args) {
        int[] arr = {1, 8, 5, 2, 4, 9, 7};
        Arrays.sort(arr);
        System.out.println("排序后的数组：");
        for (int num : arr) {
            System.out.print(num + " ");
        }
    }
}
